package rlyy.framework.netty.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * server config
 */
@Data
@ConfigurationProperties(prefix = "netty.server")
public class ServerConfig {

    private int port = 8080;
    /**
     * 服务端 - TCP级别最大同时在线的连接数
     */
    private int maxConnections = 10000;

    /**
     * true开启netty服务
     */
    private boolean enable = true;


}
